<?php

/**
 * 网站后台路由 -- 区域管理
 */

Route::group(['middleware'=>'adminAuth', 'namespace' => 'Admin', 'prefix' => 'admin/area/'],function() {
	//列表
	Route::get('datalist/{id?}', 'AreaController@listData');
	Route::get('datatablelist/{id?}', 'AreaController@bootstrapTableList');
	//新增
	Route::get('addview/{data?}', 'AreaController@addDataView');
	Route::post('addsave', 'AreaController@toAddData');
	//修改
	Route::get('editview/{id}', 'AreaController@updateDataView');
	Route::post('editsave/{id}', 'AreaController@toUpdateData');
    //排序
	Route::post('sortsave', 'AreaController@toSortData');
	//状态修改
	Route::get('status/{id}/{status?}', 'AreaController@toStatusData');
	//删除
	Route::delete('destroy', 'AreaController@toDelData');
});

